package com.ebid.templates.ten;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class QualifyBulletinPhaseUtils {

    private static Map<String,Object> map = new HashMap();


    static {
        List BID_SECTION_CODES = new ArrayList();
        BID_SECTION_CODES.add("1");
        BID_SECTION_CODES.add("2");
        BID_SECTION_CODES.add("3");

        map.put("BID_SECTION_CODES",BID_SECTION_CODES);

        List ATTACHMENTS = new ArrayList();
        Map ATTACHMENT = new HashMap();
        ATTACHMENT.put("1","");
        ATTACHMENT.put("2","");
        ATTACHMENT.put("3","");
        ATTACHMENT.put("4","");
        ATTACHMENT.put("5","");
        ATTACHMENTS.add(ATTACHMENT);
        ATTACHMENTS.add(ATTACHMENT);
        map.put("ATTACHMENT_SET",ATTACHMENTS);
    }

    public static String get(String key){
        return map.get(key)==null? "" : (String) map.get(key);
    }

    public static List<Map> getList(String key){
        if (map.get(key) == null){
            return null;
        }
        List<Map> list =  (List<Map>) map.get(key);
        return list;
    }

    public static List<String> getStrings(String key){
        if (map.get(key) == null){
            return null;
        }
        List<String> list =  (List<String>) map.get(key);
        return list;
    }
}
